package com.hanter.demo.raddemo;

import android.os.Build;

import androidx.multidex.MultiDexApplication;

import com.hanter.android.radlib.AppDelegate;

import org.lsposed.hiddenapibypass.HiddenApiBypass;

public class App extends MultiDexApplication {

    public final AppDelegate delegate = new AppDelegate(App.this);

    @Override
    public void onCreate() {
        super.onCreate();
        delegate.onCreate();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            HiddenApiBypass.addHiddenApiExemptions("");
        }
    }

    @Override
    public void onTrimMemory(int level) {
        delegate.onTrimMemory(level);
        super.onTrimMemory(level);
    }
}
